# 1. 添加cmake版本说明
cmake_minimum_required(VERSION 3.1.3)
# 2. 声明工程名称
project(odb-test)

set(src_files ${CMAKE_CURRENT_SOURCE_DIR}/publish.cc)
set(odb_srcs ${CMAKE_CURRENT_SOURCE_DIR}/consume.cc)
add_executable(publish ${src_files})
add_executable(consume ${odb_srcs})

target_link_libraries(publish -lamqpcpp -lev)
target_link_libraries(consume -lamqpcpp -lev)